using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_PhieuTraLai: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_PhieuTraLaiFields
		{
			PhieuTraLai_ID,
			NgayLap,
			TenNhanVien,
			TongTien,
			SoHoaDonBanLe,
			GhiChu,
			KhachHang,
			DienThoai,
			DiaChi,
			DuyetPhieu
		}
		#endregion

		#region Data Members

			decimal _phieuTraLai_ID;
			DateTime? _ngayLap;
			string _tenNhanVien;
			double? _tongTien;
			string _soHoaDonBanLe;
			string _ghiChu;
			string _khachHang;
			string _dienThoai;
			string _diaChi;
			byte? _duyetPhieu;

		#endregion

		#region Properties

		public decimal  PhieuTraLai_ID
		{
			 get { return _phieuTraLai_ID; }
			 set
			 {
				 if (_phieuTraLai_ID != value)
				 {
					_phieuTraLai_ID = value;
				 }
			 }
		}

		public DateTime?  NgayLap
		{
			 get { return _ngayLap; }
			 set
			 {
				 if (_ngayLap != value)
				 {
					_ngayLap = value;
				 }
			 }
		}

		public string  TenNhanVien
		{
			 get { return _tenNhanVien; }
			 set
			 {
				 if (_tenNhanVien != value)
				 {
					_tenNhanVien = value;
				 }
			 }
		}

		public double?  TongTien
		{
			 get { return _tongTien; }
			 set
			 {
				 if (_tongTien != value)
				 {
					_tongTien = value;
				 }
			 }
		}

		public string  SoHoaDonBanLe
		{
			 get { return _soHoaDonBanLe; }
			 set
			 {
				 if (_soHoaDonBanLe != value)
				 {
					_soHoaDonBanLe = value;
				 }
			 }
		}

		public string  GhiChu
		{
			 get { return _ghiChu; }
			 set
			 {
				 if (_ghiChu != value)
				 {
					_ghiChu = value;
				 }
			 }
		}

		public string  KhachHang
		{
			 get { return _khachHang; }
			 set
			 {
				 if (_khachHang != value)
				 {
					_khachHang = value;
				 }
			 }
		}

		public string  DienThoai
		{
			 get { return _dienThoai; }
			 set
			 {
				 if (_dienThoai != value)
				 {
					_dienThoai = value;
				 }
			 }
		}

		public string  DiaChi
		{
			 get { return _diaChi; }
			 set
			 {
				 if (_diaChi != value)
				 {
					_diaChi = value;
				 }
			 }
		}

		public byte?  DuyetPhieu
		{
			 get { return _duyetPhieu; }
			 set
			 {
				 if (_duyetPhieu != value)
				 {
					_duyetPhieu = value;
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("PhieuTraLai_ID", "PhieuTraLai_ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("TenNhanVien", "TenNhanVien",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("SoHoaDonBanLe", "SoHoaDonBanLe",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("GhiChu", "GhiChu",200));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("KhachHang", "KhachHang",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("DienThoai", "DienThoai",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("DiaChi", "DiaChi",200));
		}

		#endregion

	}
}
